#ifndef LOGIN_MANAGER_H_05042012
#define LOGIN_MANAGER_H_05042012

#include <string>
#include <map>

#include "exception.hpp"
#include "user.h"

class LoginManager
{
public:
	LoginManager( const std::string& sFilePath ) throw( utils::Exception );
	~LoginManager();
public:
	User* Search( std::string sName ) throw( utils::Exception );
	void Reload() throw( utils::Exception );
	std::string GetFilePath();
	std::string GetAvailableUsers();

private:
	typedef std::map < std::string, User* > UserMap;
	UserMap m_mapUsers;
	void Clear();
	std::string m_sFilePath;
};

#endif




